// 页面重定向
const redirect = {
  path: "/index/stat",
  redirect: "/index/stat/agentCustomer",
};
// 页面路由
const pagePath = {
  path: "/index/stat",
  component: import("@/views/stat/stat.vue"),
  name: "stat",
  children: [
    {
      path: "/index/stat/cockpit",
      component: import("@/views/stat/cockpit/cockpit.vue"),
      name: "cockpit",
    },
    {
      path: "/index/stat/customerAnalysis",
      component: import("@/views/stat/customerAnalysis/customerAnalysis.vue"),
      name: "customerAnalysis",
    },
    {
      path: "/index/stat/incomeNew",
      component: import("@/views/stat/incomeNew/incomeNew.vue"),
      name: "incomeNew",
    },
    {
      path: "/index/stat/paymentNew",
      component: import("@/views/stat/paymentNew/paymentNew.vue"),
      name: "paymentNew",
    },
    {
      path: "/index/stat/customStat",
      component: import("@/views/stat/customStat/customStat.vue"),
      name: "customStat",
    },

    {
      path: "/index/stat/agentCustomer",
      component: import("@/views/stat/agentCustomer/agentCustomer.vue"),
      name: "agentCustomer",
    },
    {
      path: "/index/stat/income",
      component: import("@/views/stat/income/income.vue"),
      name: "income",
    },
    {
      path: "/index/stat/statContractRenew",
      component: import("@/views/stat/statContractRenew/statContractRenew.vue"),
      name: "statContractRenew",
    },
    {
      path: "/index/stat/payment",
      component: import("@/views/stat/payment/payment.vue"),
      name: "payment",
    },
    {
      path: "/index/stat/sales",
      component: import("@/views/stat/sales/sales.vue"),
      name: "salestat",
    },
    {
      path: "/index/stat/setting",
      component: import("@/views/stat/setting/setting.vue"),
      name: "setting",
    },
  ],
};
// 父路由
const parent = "/index";

// 是否是一级路由
const levelOne = false;

// 导出
const statRouter = {
  redirect,
  pagePath,
  parent,
  levelOne,
};
export { statRouter };
